/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024.
 * Description: provide audit feature optimization
 * Author: dongxinhua <dongxinhua@huawei.com>
 * Create: 2024-03-08
 */
#ifndef RTOS_AUDIT_AFFINITY_H
#define RTOS_AUDIT_AFFINITY_H

#ifdef CONFIG_RTOS_AUDIT_CPU_AFFINITY
extern int audit_cpu_affinity_init(void);
extern bool audit_is_affinity_cpu(int cpu);
#else
static inline int audit_cpu_affinity_init(void)
{
	return 0;
}

static inline bool audit_is_affinity_cpu(int cpu)
{
	return true;
}
#endif

#endif
